<?php

namespace app\model;

use think\Model;

class Goods extends Model
{
    public function goodsCate()
    {
        return $this->hasOne('GoodsCate','id','cate_id');
    }

    public function seller()
    {
        return $this->hasOne('Seller','id','seller_id');
    }

    public function order()
    {
        return $this->hasMany('Order','num_iid','sp_id');
    }
}
